const express = require("express");

const bannerModel = require("../../model/bannerModel");

const router = express.Router();

router.get("/bannerlist", async (req, res) => {
    await bannerModel
        .get_banner()
        .then((content) => {
            res.send({
                code: 200,
                content,
            });
        })
        .catch((err) => {
            res.send({
                code: -1,
                err,
            });
        });
});

module.exports = router;
